<?php

include_once "config.php";
function curl_get_image($url){
    global $config;
    $ch = curl_init($url);
    $result = 0;
    if($ch){
        curl_setopt_array($ch, array(
                                    //CURLOPT_FILE => $file,
                                    CURLOPT_RETURNTRANSFER => true,
                                    CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; rv:2.0b10) Gecko/20110126 Firefox/4.0b10",
                                    //CURLOPT_PROXY, $config['PROXY'],
                                    CURLOPT_TIMEOUT => 10));

        $result =  curl_exec($ch);
        curl_close($ch);
    }
    return $result;
}

?>